<%@page import="com.mysql.fabric.xmlrpc.base.Data"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="leagal_aid.bean.*,java.util.*,java.io.*" %>
<%
request.setCharacterEncoding("utf-8");
String picture = request.getParameter("picture");
String  time= request.getParameter("txtDate");
int homepage = Integer.parseInt(request.getParameter("homepage"));

HomeBean homeBean = new HomeBean();

if(homeBean.doAdd(picture,time,homepage)){
	
}else{
	response.setCharacterEncoding("utf-8");
	PrintWriter pout = response.getWriter();
	pout.print("<script>alert('错误'); window.location='../add_home.jsp' </script>");
	pout.flush();
	pout.close();
	//response.sendRedirect("login.html");
};
%>    